﻿using System;
using System.Globalization;
using System.Windows.Data;

using AvalonDock;

namespace Poet.Converters
{
    public class IsActiveDocumentConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var documentContent = value as DocumentContent;
            if (documentContent != null)
            {
                return documentContent.IsActiveDocument;
            }

            return null;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
